<style>
.fui-goods-item .image {
    height: 6rem;
    width: 5rem;
}
.fui-goods-group {
    padding:0.3rem
}
.timer {
    font-size: .6rem;
    height: .95rem;
    color: #ef4f4f;
}
.timer span {
    display: inline-block;
    background:#582e19;
    color:#fff;
    width:.9rem;height:.9rem;
    border-radius: .1rem;
    line-height:.9rem;
    font-size:.5rem; text-align: center;
}
.radius .jy-group {border-radius:0.5rem;margin:0.35rem 0.5rem}
.radius .jy-group .fui-cell-group{border-radius:0.5rem;}
.bgfff .jy-group {background: #fff}
</style>
<div class="jy-group" style="margin-bottom:0">
	<div class="fixed-title" style="margin-top:1rem">
							 <span class="befirst spacing">
								 <span class="icon icon-fengexianzuo" style="font-size:2rem;color:#666"></span>
							 </span> 
							 <span class="title-text bold" style="color:#333;line-height:2rem"><i class="icon icon-xiai red" style="font-size:0.8rem;"></i> 精选好团</span> 
							 <span class="spacing">
								 <span class="icon icon-fengexianyou" style="font-size:2rem;color:#666"></span>
							 </span>
	</div>
	<div ng-if="pagedata.list.length>0" class="fui-goods-group no {{item.total <=0?'disabled':''}}" style="margin-top:0.3rem;padding:0;background-color:#f7f7f7">
			<div ng-repeat="item in pagedata.list" class="fui-goods-item" style="padding:0;margin:0.2rem 0;border: 0px solid #e7e7e7;">
				<div ng-click="pagedata.gotoitem(item);" ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="background-image: url('{{tomedia(item.member.avatar) ||'../core/resource/images/nopic.jpg'}}')">
				</div>
				<div class="detail" style="height:2.6rem;padding-left:0.3rem;padding-top:0.2rem">
					<div ng-click="pagedata.gotoitem(item);" class="overflow-h" style="width:12rem">
							<div class="jylabel jylabel-red" style="padding:0 0.2rem;margin-right:0.2rem">{{item.teamnum}}人团</div>发起人：{{item.member.nickname}}
					</div>
					<div>
					<div ng-click="pagedata.gotoitem(item);" class="goods-tag" style="margin:0.3rem 0;color:#fff;width:12rem;padding:0.3rem 0.5rem;background: url('../addons/jy_paiweifee/resource/images/pingo.png') no-repeat 50%;background-size: cover;">
						<div style="font-size:0.65rem;line-height:1.4">{{item.teamnum || 0}}人拼团，每次{{item.num || 0}}人，共{{item.level || 0}}层</div>
						<div style="font-size:0.65rem;line-height:1.4">￥{{item.pai_fee || 0}}排位奖励，￥{{item.pai_tuifee || '0.00'}}直推奖励</div>
					</div>
						<div class="price red" style="margin-top:0.1rem">￥ 
							<span class="text">
								<span style="font-weight:bold;font-size:1rem;">{{item.goods.price}}</span>
								<span ng-if="!pagedata.pluginset.noweight && item.weight>0" style="color:#999;font-size:0.55rem;font-weight:400">({{item.goods.weight}}kg)</span>
							</span>
							<span class="text r">
								<span class="subtitle" style="font-weight:400;padding-right:0.2rem;font-size:0.7rem">已拼{{item.goods.salenum || 0}}{{item.goods.unit || '件'}}</span>
							</span>
						</div>
					</div>
				</div>
			</div>
	</div>
	<div ng-if="loading && pagedata.list.length==0" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
</div>
<script>
scope.pagedata.gotoitem=function(item){
	scope.access_json('jy_paiweifee/teamdetail//teamid='+item.id);
}
scope.pagedata.params=scope.pagedata.params?scope.pagedata.params:{};
scope.tool.get_list('jy_paiweifee/index/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_paiweifee/index/getlist/');
}
</script>
